//
//  MYGSliderController.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/3/4.
//

import UIKit

class MYGSliderController: MYGBaseController {
    // MARK: - Property
    private let animation = MYGSlideTransition()
    
    // MARK: - init
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
        
        self.modalPresentationStyle = .custom
        self.transitioningDelegate = animation
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
    // MARK: - 跳转
    func show() {
        UIViewController.currentViewController?.present(self, animated: true)
    }
    
    // MARK: - lazy load
    lazy var mainView: UIView = {
        let view = UIView()
        view.backgroundColor = .white
        return view
    }()
}
